package com.taobao.chapter2;

import java.util.Arrays;
import java.util.EnumSet;

import junit.framework.TestCase;

public class Chapter2Test extends TestCase {
	
	
	public void test_EnumSet(){
		System.out.println("this is a test case");
		EnumSet<MyEnum> eset = EnumSet.noneOf(MyEnum.class);
		eset = EnumSet.allOf(MyEnum.class);
		eset.add(MyEnum.RED);
		System.out.println(Arrays.toString(eset.toArray()));
	}
}
